package com.company.cloud.club.modules.constants;

public class ClubActivityStates {

    public static final String WAIT = "未开始";

    public static final String DOING = "进行中";

    public static final String END = "已结束";

    public static final String NOT_SURE = "未知";

    public static String getState(Long startTime, Long endTime) {
        long now = System.currentTimeMillis();
        if (now < startTime) {
            return WAIT;
        } else if (now > startTime && now < endTime) {
            return DOING;
        } else if (now > endTime) {
            return END;
        }
        return NOT_SURE;
    }

}
